An Empirical Study of Test Generalization in NUnit Framework
ثبت نشده
چکیده
Owing to the significance of unit-testing in software development life-cycle, there are several existing approaches on automating the generation of conventional unit tests. However, these approaches often fail to generate a set of test cases that can ensure a high code coverage and manually writing such test cases is a labor-intensive task. To address these preceding issues with conventional unit tests, Parameterized Unit Tests (PUT) are introduced where programmers can describe the expected behavior or specifications. Pex, an automatic test generation tool, accepts these PUTs and generates a set of conventional unit tests that tries to ensure a high code coverage. In this paper, we present an empirical study to analyze the benefits of PUTs. We use two phases in the process of converting conventional unit tests into PUTs: generalization and writing new PUTs. The generalization phase refers to the transformation of existing conventional unit tests into PUTs, whereas writing new PUTs refers to the addition of new PUTs to cover the code under test that is not covered by the generalization phase. In our empirical study, we used an open source C# project called NUnit to study the benefits of test generalization. In our study, we found that generalization has increased the code coverage by 9.68% (on average) and also detected 7 new defects. Furthermore, writing new PUTs resulted in a total increase in the code coverage achieved with conventional unit tests
منابع مشابه
An Empirical Study of Test Generalization in NUnit Framework
Owing to the significance of unit testing in software development life cycle, there are several existing approaches on automating the generation of conventional unit tests. However, these approaches often fail to generate a minimal set of test cases for ensuring a high code coverage and manually writing such test cases is a labor-intensive task. To address these preceding issues with convention...
متن کاملEstablishing an Argument-Based Validity Approach for a Low-Stake Test of Collocational Behavior
Most of the validation studies conducted across varying test application contexts are usually framed within the traditional conceptualization of validity and therefore lack a comprehensive framework to focus on test score interpretations and test score use. This study aimed at developing and validating a collocational behavior test (CBT), drawing on Kane's argument-based approach to validity. F...
متن کاملDrawkcab Gnimmargorp: Test-Driven Development with FUTS
One of the practices of Extreme Programming is Test-Driven Development (TDD), also known as Test-First Design. This style of development emphasizes an approach that is backwards to many programmers: writing tests before working code. Interestingly, this approach has found application in both agile methodologies and validation-intensive programming environments. TDD involves creating automated a...
متن کاملNUnit – Test-Driven Development with .NET
NUnit is a framework that serves to generate component and module tests for .NET platforms. This framework acts as support in the test-driven development and enhances the quality of codes by quickly isolating errors in the source code. This in effect minimizes additional the cost of subsequent error search. We aim at highlighting the advantages and limitations of NUnit. We will present and exem...
متن کاملInvariant Empirical Bayes Confidence Interval for Mean Vector of Normal Distribution and its Generalization for Exponential Family
Based on a given Bayesian model of multivariate normal with known variance matrix we will find an empirical Bayes confidence interval for the mean vector components which have normal distribution. We will find this empirical Bayes confidence interval as a conditional form on ancillary statistic. In both cases (i.e. conditional and unconditional empirical Bayes confidence interval), the empiri...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2009